import axios from 'axios';
let base = 'tasks';


/**
 * 任务列表
 * **/
export const getTasksList = params => {
    return axios.post(`${base}/list`, params);
};


/**
 * 任务详情
 * **/
export const getTasksDetail = params => {
    return axios.post(`${base}/detail/`, params);
};


/**
 * 下发现场检查通知书
 * **/
export const uploadNotification = params => {
    return axios.post(`${base}/upload_notification`, params);
};

/**
 * 新增任务
 * **/
export const addTask = params => {
    return axios.post(`${base}/add`, params);
};


/**
 * 删除任务
 * **/
export const delTask = params => {
    return axios.post(`${base}/del/`, params);
};

